﻿using Entities.Admin;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities.CoinEntities.Cryptsy
{
    [Table("cryptsy_coins")]
    public class CryptsyCoinEntity
    {
        [Key]
        [Column("id")]
        public int id { get; set; }

        [Column("label")]
        public string label { get; set; }

        [Column("lasttradeprice")]
        public double? lasttradeprice { get; set; }

        [Column("lasttradetime")]
        public DateTime? lasttradetime { get; set; }

        [Column("marketid")]
        public int marketid { get; set; }

        [Column("primarycode")]
        public string primarycode { get; set; }

        [Column("primaryname")]
        public string primaryname { get; set; }

        [Column("secondarycode")]
        public string secondarycode { get; set; }

        [Column("secondaryname")]
        public string secondaryname { get; set; }

        [Column("volume")]
        public double volume { get; set; }

        [Column("low")]
        public double low { get; set; }

        [Column("high")]
        public double high { get; set; }

        [Column("avg")]
        public double avg { get; set; }

        [Column("updatedat")]
        public DateTime updatedat { get; set; }
    }
}
